<?php

echo "asdasd";
class bb {
       public function __construct() {
          $CI = & get_instance();
       $CI->load->helper('url');  
    }
    
    
}






class A extends bb {

    
    
    public function test1() {
    
echo site_url("news/local/123");
exit;
      //  $this->session_id = Session_id(); //开启sessionstart时候可以获取session_id
      //  $this->CI->load->database();
        
        
        
        echo "A.test1";
        
    }

}

class B {


    public function test2() {
             $CI = & get_instance();
       $CI->load->helper('url');
echo site_url("news/123");
        $aa = new A();
        $aa->test1();
        echo "B.test2";
    }

}

?>
